About 398 letters

About 2 minutes

#pow

Description: Calculate the power.

def pow(x, y):
    '''
    Calculate power

    :param x: Base
    :param y: Exponent
    :return: x raised to the power y
    '''

Example:

print(pow(2, 3))

>>> Establishing WebAssembly Runtime.

>>> Standby.

Powered by Shift.

Updated: 6/9/2025

Author: PlanC

Created: 6/9/2025